package com.pazl.check.api.dto;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 担保人信息
 * @author chenyn
 *
 * 2020年5月11日
 */
public class SponsorInfoDto implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8668357361401026779L;

	@NotEmpty(message = "sponsorInfos->name missing.",groups = {SponsorInfoDto.class})
	private String name;// 姓名
	
	@NotEmpty(message = "sponsorInfos->relax missing.")
	@Pattern(regexp="1|2|3|4",message="sponsorInfos->relax error,only 【1|2|3|4】")
	private String relax;// 与承租人关系
	
	@NotEmpty(message = "sponsorInfos->cellphone missing.")
	private String cellphone;// 手机号码
	
	@JsonProperty("IDtype")
	@NotEmpty(message = "sponsorInfos->IDtype missing.")
	@Pattern(regexp="1",message="sponsorInfos->IDtype error,only 【1】")
	private String IDtype;// 证件种类
	
	@JsonProperty("IDnum")
	@NotEmpty(message = "sponsorInfos->IDnum missing.")
	private String IDnum;// 证件号码
	
	@NotEmpty(message = "sponsorInfos->birthday missing.")
	private String birthday;// 出生日期
	
	@NotEmpty(message = "sponsorInfos->sex missing.")
	@Pattern(regexp="1|2",message="sponsorInfos->sex error,only 【1|2】")
	private String sex;// 性别
	
	@NotEmpty(message = "sponsorInfos->education missing.")
	@Pattern(regexp="1|2|3|4|5|6|7",message="sponsorInfos->education error,only 【1|2|3|4|5|6|7】")
	private String education;// 教育
	
	@NotEmpty(message = "sponsorInfos->homeProvince missing.")
	private String homeProvince;// 身份证（省）
	
	@NotEmpty(message = "sponsorInfos->homeCity missing.")
	private String homeCity;// 身份证（市）
	
	@NotEmpty(message = "sponsorInfos->homeAddress missing.")
	private String homeAddress;// 身份证（详细地址）
	
	@NotEmpty(message = "sponsorInfos->estateType missing.")
	@Pattern(regexp="1|2|3|4|5|6|7",message="sponsorInfos->estateType error,only 【1|2|3|4|5|6|7】")
	private String estateType;// 房产类型
	
	@NotEmpty(message = "sponsorInfos->estateProvince missing.")
	private String estateProvince;// 现居住地址（省）
	
	@NotEmpty(message = "sponsorInfos->estateCity missing.")
	private String estateCity;// 现居住地址（市）
	
	@NotEmpty(message = "sponsorInfos->estateAddress missing.")
	private String estateAddress;// 现居住地址详细地址
	
	@NotEmpty(message = "sponsorInfos->work missing.")
	@Pattern(regexp="1|2",message="sponsorInfos->work error,only 【1|2】")
	private String work;// 有无工作
	
	private String comment;// 备注
	
	private String empName;// 工作单位名称
	
    private String empProvince;// 单位地址（省）
	
	private String empCity;// 单位地址（市）
	
	private String empAddress;// 单位地址
	
	private String empPhone;// 单位电话
	
	@Pattern(regexp="1|2|3|4|5|6|7|8",message="sponsorInfos->empType error,only 【1|2|3|4|5|6|7|8】",groups = {SponsorInfoDto.class})
	private String empType;// 企业性质
	
	@NotEmpty(message = "sponsorInfos->empOccupation missing.")
	@Pattern(regexp="1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|98|99",message="empOccupation error,only 【1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|98|99】")
	private String empOccupation;// 职业

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRelax() {
		return relax;
	}

	public void setRelax(String relax) {
		this.relax = relax;
	}

	public String getCellphone() {
		return cellphone;
	}

	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}

	public String getIDtype() {
		return IDtype;
	}

	public void setIDtype(String iDtype) {
		IDtype = iDtype;
	}

	public String getIDnum() {
		return IDnum;
	}

	public void setIDnum(String iDnum) {
		IDnum = iDnum;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public String getHomeProvince() {
		return homeProvince;
	}

	public void setHomeProvince(String homeProvince) {
		this.homeProvince = homeProvince;
	}

	public String getHomeCity() {
		return homeCity;
	}

	public void setHomeCity(String homeCity) {
		this.homeCity = homeCity;
	}

	public String getHomeAddress() {
		return homeAddress;
	}

	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}

	public String getEstateType() {
		return estateType;
	}

	public void setEstateType(String estateType) {
		this.estateType = estateType;
	}

	public String getEstateProvince() {
		return estateProvince;
	}

	public void setEstateProvince(String estateProvince) {
		this.estateProvince = estateProvince;
	}

	public String getEstateCity() {
		return estateCity;
	}

	public void setEstateCity(String estateCity) {
		this.estateCity = estateCity;
	}

	public String getEstateAddress() {
		return estateAddress;
	}

	public void setEstateAddress(String estateAddress) {
		this.estateAddress = estateAddress;
	}

	public String getWork() {
		return work;
	}

	public void setWork(String work) {
		this.work = work;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public String getEmpProvince() {
		return empProvince;
	}

	public void setEmpProvince(String empProvince) {
		this.empProvince = empProvince;
	}

	public String getEmpCity() {
		return empCity;
	}

	public void setEmpCity(String empCity) {
		this.empCity = empCity;
	}

	public String getEmpAddress() {
		return empAddress;
	}

	public void setEmpAddress(String empAddress) {
		this.empAddress = empAddress;
	}

	public String getEmpPhone() {
		return empPhone;
	}

	public void setEmpPhone(String empPhone) {
		this.empPhone = empPhone;
	}

	public String getEmpType() {
		return empType;
	}

	public void setEmpType(String empType) {
		this.empType = empType;
	}

	public String getEmpOccupation() {
		return empOccupation;
	}

	public void setEmpOccupation(String empOccupation) {
		this.empOccupation = empOccupation;
	}
	
	public interface Sponsor{
		
	}
}
